﻿<Window x:Class="ValueSelectionSampleApp.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
				xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
		xmlns:local="clr-namespace:ValueSelectionSampleApp"
    Title="Window1" Height="320">
	
	<Grid>
		<StackPanel>
			<d3:NumericSelector Name="doubleSelector"/>
			<TextBlock>
                <Run>Selected = </Run>
                <TextBlock Text="{Binding ElementName=doubleSelector, Path=SelectedValue}"/>
            </TextBlock>

			<d3:IntegerSelector Name="integerSelector"/>
			<TextBlock>
                <Run>Selected = </Run>
                <TextBlock Text="{Binding ElementName=integerSelector, Path=SelectedValue}"/>
            </TextBlock>


			<d3:DateTimeSelector Name="timeSelector"/>
			<TextBlock>
                <Run>Selected = </Run>
                <TextBlock Text="{Binding ElementName=timeSelector, Path=SelectedValue}"/>
            </TextBlock>

			<d3:ColorSelector Name="colorSelector">
				<d3:ColorSelector.Palette>
					<d3:HsbPalette/>
				</d3:ColorSelector.Palette>
			</d3:ColorSelector>
			
			<Rectangle Width="200" Height="60" HorizontalAlignment="Center" VerticalAlignment="Stretch"
					   Margin="20"
					   Stroke="LightGray"
					   Fill="{Binding ElementName=colorSelector, Path=SelectedBrush}"/>
		</StackPanel>
	</Grid>
</Window>
